package cn.dingdan.sercice.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.dingdan.dao.TypeDao;
import cn.dingdan.pojo.Type;
import cn.dingdan.sercice.TypeService;
@Service("typeServiceImpl")
public class TypeServiceImpl implements TypeService{
	
	@Resource(name="typeDao")
	private TypeDao typeDao;
	
	@Override
	public List<Type> getLists() {
		
		return typeDao.getLists();
	}

	@Override
	public int addType(Type type) {
		return typeDao.addType(type);
	}

	@Override
	public int updateType(Type type) {
		return typeDao.updateType(type);
	}

	@Override
	public int delType(Integer menuTypeId) {
		return typeDao.delType(menuTypeId);
	}

}
